package cn.yuanqiao.cqbc.common.mapper;
/**
 * @author 赵常飞
 * @date 2024/6/17 11:17
 */

import cn.yuanqiao.cqbc.dataManageTreePath.domain.InsertEntity;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 *@Author: 赵常飞
 *@Date: 2024/6/17 11:17
 *@Description:
 *@Note:
 */

public interface MapperToolsMapper {
    Map<String, Object> getMapResult(@Param("sqlStr")String sqlStr);

    String getSingleVal(@Param("sqlStr")String sqlStr);

    String getSingle(@Param("sqlStr")String sqlStr);

    ArrayList<String> getSingleListBySql(@Param("sqlStr")String sqlStr);

    List<Map<String, Object>> getListResult(@Param("sqlStr")String sqlStr);

    String getStringVal(@Param("sqlStr")String sqlStr);

    int executeUpdate(@Param("sqlStr")String sqlStr);

    List<Map<String, String>> getListResult2(@Param("sqlStr")String sqlStr);

    Long getIdByMap(@Param("data")Map<String, String> data,@Param("tableName") String tableName);

    int insertEntity(InsertEntity yqItem);
}
